/*
 * @Author: yaoling 1871883713@qq.com
 * @Date: 2022-11-10 00:50:30
 * @LastEditors: yaoling 1871883713@qq.com
 * @LastEditTime: 2022-12-06 14:55:59
 * @FilePath: \company-world\src\router\modules\jurisdiction.ts
 * @Description: 权限管理
 */
import { RouteRecordRaw } from "vue-router";
import Home from '@/views/home/index.vue'
/**
 * @desc: 权限管理
 */
const jurisdictionRouter: Array<RouteRecordRaw> = [
    {
        path: '/jurisdiction',
        name: 'Jurisdiction',
        meta: {
            title: '权限管理',
            icon: 'iconguanli',
        },
        component: Home,
        children: [
            {
                path: '/home/menu',
                meta: {
                    title: '菜单管理',
                    icon: 'iconc-system'
                },
                name: 'Menu',
                component: () => import('@/views/menuManagement/index.vue')
            },
            {
                path: '/menu/add-menu',
                meta: {
                    title: '新增菜单',
                    icon: 'iconc-system'
                },
                name: 'AddMenu',
                component: () => import('@/views/menuManagement/addmenu/index.vue')
            },
            {
                path: '/home/menu-auth',
                meta: {
                    title: '菜单授权',
                    icon: 'iconc-system'
                },
                name: 'MenuRole',
                component: () => import('@/views/menuAuthorization/index.vue')
            },
            {
                path: '/home/auth/user-role',
                name: 'UserRole',
                component: () => import('@/views/rolePermission/index.vue'),
                meta: {
                    title: '角色权限',
                    icon: 'icontuandui'
                }
            },
        ]

    }
];
export default jurisdictionRouter;
